package com.huluobo.mvvm_base.mvvm.db;

import androidx.room.Database;
import androidx.room.RoomDatabase;

import com.huluobo.mvvm_base.mvvm.bean.Money;
import com.huluobo.mvvm_base.mvvm.bean.UserBeanResult;

/**
 * Created by LC on 2024/2/27.
 * 构建数据库
 */
@Database(entities = {UserBeanResult.UserBean.class, Money.class}, version = 1, exportSchema = false)
public abstract class AppDatabase extends RoomDatabase {
    //数据库中需要返回对应的表的Dao,有几个表就写几个Dao的方法
    public abstract UserDao getUserDao();

    public abstract MoneyDao getMoneyDao();
}
